package com.usian.apis.service.wemedia;

import com.usian.model.admin.dtos.NewsAuthDto;
import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.media.dtos.*;
import com.usian.model.media.pojos.WmNews;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface WemediaControllerUpload {
    public ResponseResult upload(MultipartFile multipartFile);
    public ResponseResult findpage(WmMaterialDto wmMaterialDto);
    public ResponseResult del(Integer id);
    public ResponseResult collect(Integer id);
    public ResponseResult cancel_collect(Integer id);
    public ResponseResult list(WmNewsPageReqDto dto);
    ResponseResult submitnews(WmNewsDto wmNewsDto);
    WmNews findById(Integer id);
    ResponseResult findNews(NewsAuthDto newsAuthDto);
    public ResponseResult updateNews(@RequestBody WmNews wmNews);
    public List<WmNews> findAll();
    public ResponseResult one(@PathVariable Integer id);
    public ResponseResult auth_pass(WmNewsAuthDto wmNewsAuthDto);
    public ResponseResult down_or_up(@RequestBody WmNews wmNews);

}
